﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Invoker
{
    ICommand jumpCommand = new JumpCommand(new JumpReceived());
    ICommand pickCommand = new PickCommand(new PickReceived());

    public ICommand ExcuteCommand()
    {
        if (Input.GetKeyDown(KeyCode.J))
        {
            return jumpCommand;
        }
        else if (Input.GetKeyDown(KeyCode.P))
        {
            return pickCommand;
        }

        return null;
    }
}
